import random
print("正在生成验证码\n")
code=''
for i in range(4):
    if random.randint(0,1)==0:
        code=code+chr(random.randint(65,90))
    else:
        code=code+chr(random.randint(97,122))
print("随机验证码为：{}".format(code))



